home *** CD-ROM | disk | FTP | other *** search
/ Anatomy & Physiology - Essential Study Partner / Anatomy & Physiology ESP 2.iso / mac / files / Behvrs.cxt / 00207_Field_FILEIO INFO.txt < prev    next >
Text File  |  1999-12-21  |  2KB  |  30 lines

  1. put mMessageList(xtra "fileio")
  2. -- "xtra fileio -- CH 18apr97
  3. new object me -- create a new child instance
  4. -- FILEIO --
  5. fileName object me -- return fileName string of the open file
  6. status object me -- return the error code of the last method called
  7. error object me, int error -- return the error string of the error
  8. setFilterMask object me, string mask -- set the filter mask for dialogs
  9. openFile object me, string fileName, int mode -- opens named file. valid modes: 0=r/w 1=r 2=w
  10. closeFile object me -- close the file
  11. displayOpen object me -- displays an open dialog and returns the selected fileName to lingo
  12. displaySave object me, string title, string defaultFileName -- displays save dialog and returns selected fileName to lingo
  13. createFile object me, string fileName -- creates a new file called fileName
  14. setPosition object me, int position -- set the file position
  15. getPosition object me -- get the file position
  16. getLength object me -- get the length of the open file
  17. writeChar object me, string theChar -- write a single character (by ASCII code) to the file
  18. writeString object me, string theString -- write a null-terminated string to the file
  19. readChar object me -- read the next character of the file and return it as an ASCII code value
  20. readLine object me -- read the next line of the file (including the next RETURN) and return as a string
  21. readFile object me -- read from current position to EOF and return as a string
  22. readWord object me -- read the next word of the file and return it as a string
  23. readToken object me, string skip, string break -- read the next token and return it as a string
  24. getFinderInfo object me -- get the finder info for the open file (Mac Only)
  25. setFinderInfo object me, string attributes -- set the finder info for the open file (Mac Only)
  26. delete object me -- deletes the open file
  27. + version xtraRef -- display fileIO version and build information in the message window
  28. * getOSDirectory -- returns the full path to the Mac System Folder or Windows Directory
  29. "
  30.